/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 说明：
 * Entity Name 发卡记录
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TSendCardRecord")
public class TSendCardRecord {

	private String SendCardRecordID;//编号
	
	private String CardNum;//卡号CHAR(15)
	
	private Date SendCardTime;//发卡时间
	
	private TUser TUser;//用户
	@Id
	@Column(name = "SendCardRecordID", length=15)
	public String getSendCardRecordID() {
		return SendCardRecordID;
	}
	public void setSendCardRecordID(String sendCardRecordID) {
		SendCardRecordID = sendCardRecordID;
	}
	@Column(name = "CardNum", length=15)
	public String getCardNum() {
		return CardNum;
	}

	public void setCardNum(String cardNum) {
		CardNum = cardNum;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "SendCardTime", nullable = false, length = 19)
	public Date getSendCardTime() {
		return SendCardTime;
	}

	public void setSendCardTime(Date sendCardTime) {
		this.SendCardTime = sendCardTime;
	}
	
	@ManyToOne
	@JoinColumn(name="UserID")
	public TUser getTUser() {
		return TUser;
	}

	public void setTUser(TUser tUser) {
		TUser = tUser;
	}
}
